package net.jlnx.Uebung5_1.data;

public class SortableElement implements Comparable<SortableElement> {
	int data1 = 0;
	int data2 = 0;

	public SortableElement(int i, int j) {
		data1 = i;
		data2 = j;
	}

	public int compareTo(SortableElement o) {
		return data2 - o.data2;
	}

	public String toString() {
		return "(" + data1 + ", " + data2 + ")";
	}

}